﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GeckoSchoolAdmin
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'teacher_DataSet.Teacher' table. You can move, or remove it, as needed.
            this.teacherTableAdapter.Fill(this.teacher_DataSet.Teacher);
            
            
            // TODO: This line of code loads data into the 'results_DataSet.Results' table. You can move, or remove it, as needed.
          
            // TODO: This line of code loads data into the 'students_Results_DataSet.Students_Results' table. You can move, or remove it, as needed.
        
            // TODO: This line of code loads data into the 'student_Results_DataSet.Students_Results' table. You can move, or remove it, as needed.
            
        
        }
        

        private void exitToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void btnAssessments_Click(object sender, EventArgs e)
        {
            this.resultsTableAdapter.Fill(this.result_DataSet.Results, txtClassNumber.Text,txtYearCode.Text);
        }

       

        private void studentsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmStudents frm = new frmStudents();
            frm.Show();
            
        }

       
     


    }
}
